<template>
    <j-modal
      :width="width"
      :visible="visible"
      :title="title"
      wrapClassName="j-user-select-modal"
      @cancel="close"
      cancelText="关闭"
      style="top:50px; padding-bottom: 50px"
    >
    <ErpOmcPrepareProjectNameCheckForm ref="realForm" normal></ErpOmcPrepareProjectNameCheckForm>
    <template slot="footer">
      <a-button @click.stop="()=>{visible=false}">关闭</a-button>
    </template>
  </j-modal>
</template>

<script>
  import ErpOmcPrepareProjectNameCheckForm from './ErpOmcPrepareProjectNameCheckForm'
  export default {
    name: 'ErpOmcPrepareProjectNameCheckModal',
    components: {
      ErpOmcPrepareProjectNameCheckForm
    },
    data () {
      return {
        title: '校重检验',
        width: 1000,
        visible: false,
        disableSubmit: false,
        buttonDisable: false
      }
    },
    methods: {
      getDetail () {
        this.buttonDisable = false
        this.visible = true
        this.$nextTick(() => {
          this.$refs.realForm.getDetail();
        });
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      submitCallback() {
        this.$emit('ok');
        this.visible = false;
      }
    }
  }
</script>